
package net.swa.dewei.beans.vo;

/**虚拟电池信息
 * 用于列表展示
 * @author junyu
 *
 */
public class VoBattery implements Comparable<VoBattery>
{
    //PK
    private Long id;

    /**名称（暂未使用，带扩展）**/
    private String name;

    /**重量*/
    private String zhongliang;

    /**里程*/
    private String licheng;

    /**品牌**/
    private String pinPai;

    /**型号*/
    private String xingHao;

    /**副标题（暂未使用，带扩展）**/
    private String subName;

    /**电池图片**/
    private String imageUrl;

    /**电池图片缩小版**/
    private String minImageUrl;

    /**电池图片,针对特定地区，不做数据库映射，若存在则替换imageUrl**/
    private String imageUrlTrue;

    /**市场换够价**/
    private String marketPrice;

    /**市场换够价,针对特定地区，不做数据库映射，若存在则替换marketPrice**/
    private String marketPriceTrue;

    /**本网换购价**/
    private String ourPrice;

    /**本网换购价,针对特定地区，不做数据库映射，若存在则替换ourPrice**/
    private String ourPriceTrue;

    /**详细说明**/
    private String detailInfo;

    /**创建时间**/
    private String crateDate;

    /**更新时间**/
    private String updateDate;

    /**排序**/
    private Integer sort;

    /**排序,价格中排序**/
    private Integer sort2;

    /**省（不做实体映射）**/
    private String province;

    /**市（不做实体映射）**/
    private String city;

    /**县（不做实体映射）**/
    private String town;

    /** 电池状态  控制车型是否默认手机端显示 **/
    private String state;

    public Long getId()
    {
        return id;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public String getName()
    {
        return name;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public String getZhongliang()
    {
        return zhongliang;
    }

    public void setZhongliang(String zhongliang)
    {
        this.zhongliang = zhongliang;
    }

    public String getLicheng()
    {
        return licheng;
    }

    public void setLicheng(String licheng)
    {
        this.licheng = licheng;
    }

    public String getPinPai()
    {
        return pinPai;
    }

    public void setPinPai(String pinPai)
    {
        this.pinPai = pinPai;
    }

    public String getXingHao()
    {
        return xingHao;
    }

    public void setXingHao(String xingHao)
    {
        this.xingHao = xingHao;
    }

    public String getSubName()
    {
        return subName;
    }

    public void setSubName(String subName)
    {
        this.subName = subName;
    }

    public String getImageUrl()
    {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl)
    {
        this.imageUrl = imageUrl;
    }

    public String getMinImageUrl()
    {
        return minImageUrl;
    }

    public void setMinImageUrl(String minImageUrl)
    {
        this.minImageUrl = minImageUrl;
    }

    public String getImageUrlTrue()
    {
        return imageUrlTrue;
    }

    public void setImageUrlTrue(String imageUrlTrue)
    {
        this.imageUrlTrue = imageUrlTrue;
    }

    public String getMarketPrice()
    {
        return marketPrice;
    }

    public void setMarketPrice(String marketPrice)
    {
        this.marketPrice = marketPrice;
    }

    public String getMarketPriceTrue()
    {
        return marketPriceTrue;
    }

    public void setMarketPriceTrue(String marketPriceTrue)
    {
        this.marketPriceTrue = marketPriceTrue;
    }

    public String getOurPrice()
    {
        return ourPrice;
    }

    public void setOurPrice(String ourPrice)
    {
        this.ourPrice = ourPrice;
    }

    public String getOurPriceTrue()
    {
        return ourPriceTrue;
    }

    public void setOurPriceTrue(String ourPriceTrue)
    {
        this.ourPriceTrue = ourPriceTrue;
    }

    public String getDetailInfo()
    {
        return detailInfo;
    }

    public void setDetailInfo(String detailInfo)
    {
        this.detailInfo = detailInfo;
    }

    public String getCrateDate()
    {
        return crateDate;
    }

    public void setCrateDate(String crateDate)
    {
        this.crateDate = crateDate;
    }

    public String getUpdateDate()
    {
        return updateDate;
    }

    public void setUpdateDate(String updateDate)
    {
        this.updateDate = updateDate;
    }

    public Integer getSort()
    {
        return sort;
    }

    public void setSort(Integer sort)
    {
        this.sort = sort;
    }

    public String getProvince()
    {
        return province;
    }

    public void setProvince(String province)
    {
        this.province = province;
    }

    public String getCity()
    {
        return city;
    }

    public void setCity(String city)
    {
        this.city = city;
    }

    public String getTown()
    {
        return town;
    }

    public void setTown(String town)
    {
        this.town = town;
    }

    public String getState()
    {
        return state;
    }

    public void setState(String state)
    {
        this.state = state;
    }

    @Override
    public int compareTo(VoBattery o)
    {
        if (null == this.sort && null != o.getSort())
        {
            return 1;
        }
        else if (null != this.sort && null == o.getSort())
        {
            return -1;
        }
        else if (null != this.sort && null != o.getSort())
        {
            if (this.sort > o.getSort())
            {
                return 1;
            }
            if (this.sort < o.getSort())
            {
                return -1;
            }
            return 0;
        }
        else
        {
            return 0;
        }
    }
}